package com.sxj.conmon.interceptor;

import java.util.Map;

import com.alibaba.dubbo.common.Constants;
import com.alibaba.dubbo.common.extension.Activate;
import com.alibaba.dubbo.rpc.Filter;
import com.alibaba.dubbo.rpc.Invocation;
import com.alibaba.dubbo.rpc.Invoker;
import com.alibaba.dubbo.rpc.Result;
import com.alibaba.dubbo.rpc.RpcException;

@Activate(group = Constants.CONSUMER)
public class OperatorOutInterceptor implements Filter {

	@Override
	public Result invoke(Invoker<?> invoker, final Invocation invocation) throws RpcException {
		Map<String, String> sss = invocation.getAttachments();
		sss.put("a", "aaaaaaaaaaaaaaaabbbbbbbbbbbb");
		return invoker.invoke(invocation);
	}

}
